/*
 * *
 *  * Created with IntelliJ RustRover.
 *  * Description:
 *  * Copyright Author: ZhenYi
 *  * DateTime: 2024/2/14 下午5:10
 *
 */
use rustis::client::Client;
use tracing::info;
/// 连接redis数据库
pub async fn redis_connect(info:&crate::config::info::Master) -> Client {
    info!("Connecting to redis");
   Client::connect(info.redis_nohead()).await.unwrap()
}